package cn.tedu.charging.order.clients;

import cn.tedu.charging.common.protocol.JsonResult;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestParam;

/**
 * 调用车主服务的入口
 */
@FeignClient("charging-user")
public interface UserClient {
    //调用检车车主是否允许在该枪充电
    @GetMapping("/user/charg/check")
    JsonResult<Boolean> checkUserGun(@RequestParam("userId") Integer userId, @RequestParam("gunId") Integer gunId);
}
